<template>
  <div>
    <h1>这是登录页</h1>
    <MyInPut @setValue="logValue" tixing="请输入用户名" />
    <MyInPut @setValue="logValue" tixing="请输入密码" />
    <MyInPut @setValue="logValue" tixing="请输入验证码" />
  </div>
</template>

<script>
import MyInPut from "../components/MyInPut";
export default {
  components: {
    MyInPut,
  },
  methods: {
    logValue(val) {
      console.log("这里是父组件");
      console.log("接收到子组件的传值");
      console.log(val);
    },
  },
};
</script>

<style>
</style>